import { BasicColumn, FormSchema } from '@/components/Table';

export const columns: BasicColumn[] = [
  {
    title: '流程名称',
    dataIndex: 'flowName',
    width: 200,
  },
  {
    title: '流程版本',
    dataIndex: 'flowVersion',
    width: 200,
  },
  {
    title: '创建时间',
    dataIndex: 'createTime',
    width: 180,
  },
];

export const searchFormSchema: FormSchema[] = [
  {
    field: 'flowName',
    label: '流程名称',
    component: 'Input',
    colProps: { span: 8 },
  },
  {
    field: 'flowVersion',
    label: '流程版本',
    component: 'Input',
    colProps: { span: 8 },
  },
];

export const formSchema: FormSchema[] = [
  {
    field: 'flowId',
    label: '流程id',
    component: 'Input',
    ifShow: false,
  },
  {
    field: 'flowName',
    label: '流程名称',
    required: true,
    component: 'Input',
  },
  {
    field: 'flowVersion',
    label: '流程版本',
    required: true,
    component: 'Input',
  },
];
